﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessSMS;

namespace BussinessSMS
{
    public class CommonCls
    {
       private string UserId = string.Empty;
       public CommonCls(string Userid)
        {
            this.UserId=Userid;
           
        }
       public List<User> GetUserInfo(string UserId, string Password)
       {
           DatabaseHelper _helper = new DatabaseHelper();
           using (var db = _helper.GetSMSData())
           {
               var result = (from x in db.Users where x.User_Id == UserId && x.Password == Password select x).ToList<User>();

               return result;
           }

       }
    }
}
